"""
@author:menglei
@desc:多多客获取爆款排行商品接口
"""
from pdd.api.base import RestApi


class PddDdkTopGoodsListQueryRequest(RestApi):
    """
    @:param: limit:INTEGER:请求数量；默认值 ： 400
    @:param: list_id:STRING:翻页时建议填写前页返回的list_id值
    @:param: offset:INTEGER:从多少位置开始请求；默认值 ： 0
    @:param: p_id:STRING:推广位id
    @:param: sort_type:INTEGER:1-实时热销榜；2-实时收益榜
    """
    def __init__(self,domain='https://gw-api.pinduoduo.com'):
        RestApi.__init__(self, domain)
        self.limit = None
        self.list_id = None
        self.offset = None
        self.p_id = None
        self.sort_type = None

    def getapiname(self):
        return 'pdd.ddk.top.goods.list.query'